﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace 视频流媒体管理
{
    public partial class caminfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btn查询Excel_Click(object sender, EventArgs e)
        {
            this.GridView1.DataSource = Code.摄像机管理.ONE.dt摄像机列表;
            this.GridView1.DataBind();
        }

        protected void btn查重新加载_Click(object sender, EventArgs e)
        {
            string t = this.Server.MapPath("App_Data");
            string xls = System.IO.Path.Combine(t, "摄像机列表.xlsx");
            Code.摄像机管理.ONE.加载摄像机列表xls(xls);
            this.GridView1.DataSource = Code.摄像机管理.ONE.dt摄像机列表;
            this.GridView1.DataBind();
        }
    }
}